package Com.Hupochuan.Vo;

import java.sql.Timestamp;

import Com.Hupochuan.Uil.Util.TimeStringUtil;

/*
 * 电影资源表 MovieSource
 */
public class MovieSource {
	//					字段名			字段类型			中文解析	缺省(Default)	备注
	private Long 		id;//			INT				ID		AUTO_INCREMENT	PRIMARY KEY
	private Long 		movieId;//		INT				电影ID	0	
	private Long 		typeId;//		INT				类型ID	0
	private Long 		languageId;//	INT				语言ID	0	
	private Long 		subtitleId;//	INT				字幕ID	0	
	private Long 		modeId;//		INT				状况ID	0
	private String 		name;//			VARCHAR(50)		名称		(空字符串)
	private String 		url;//			VARCHAR(200)	网址		(空字符串)	
	private Float 		weight;//		FLOAT			权重		0	
	private Timestamp 	createTime;//	DATETIME		创建时间	No default	
	private Timestamp 	updateTime;//	DATETIME		更新时间	No default
	
	private String 		typeName;//				资源类型名称
	private String 		typeLogoPositionY;//	资源类型图片位置Y坐标
	private String 		typeSearchUrl;//		资源类型搜索前缀
	private Long 		typeAdDuration;//		资源类型广告时长
	private String 		languageName;//			资源语言名称
	private String 		subtitleName;//			资源字幕名称
	private String 		modeName;//				资源状况名称
	
	/*
	 * 获得转换的时间字符串
	 */
	public String getCreateTimeString() {
		return TimeStringUtil.getObject().timeToTimeString(this.createTime);
	}
	public String getUpdateTimeString() {
		return TimeStringUtil.getObject().timeToTimeString(this.updateTime);
	}
	
	/*
	 * 参数注入
	 */
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public Long getMovieId() {
		return movieId;
	}
	public void setMovieId(Long movieId) {
		this.movieId = movieId;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public Timestamp getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}
	public Timestamp getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Timestamp updateTime) {
		this.updateTime = updateTime;
	}
	public Long getTypeId() {
		return typeId;
	}
	public void setTypeId(Long typeId) {
		this.typeId = typeId;
	}
	public Float getWeight() {
		return weight;
	}
	public void setWeight(Float weight) {
		this.weight = weight;
	}
	public String getTypeName() {
		return typeName;
	}
	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}
	public String getTypeLogoPositionY() {
		return typeLogoPositionY;
	}
	public void setTypeLogoPositionY(String typeLogoPositionY) {
		this.typeLogoPositionY = typeLogoPositionY;
	}
	public String getTypeSearchUrl() {
		return typeSearchUrl;
	}
	public void setTypeSearchUrl(String typeSearchUrl) {
		this.typeSearchUrl = typeSearchUrl;
	}
	public Long getLanguageId() {
		return languageId;
	}
	public void setLanguageId(Long languageId) {
		this.languageId = languageId;
	}
	public Long getSubtitleId() {
		return subtitleId;
	}
	public void setSubtitleId(Long subtitleId) {
		this.subtitleId = subtitleId;
	}
	public String getLanguageName() {
		return languageName;
	}
	public void setLanguageName(String languageName) {
		this.languageName = languageName;
	}
	public String getSubtitleName() {
		return subtitleName;
	}
	public void setSubtitleName(String subtitleName) {
		this.subtitleName = subtitleName;
	}
	public void setTypeAdDuration(Long typeAdDuration) {
		this.typeAdDuration = typeAdDuration;
	}
	public Long getTypeAdDuration() {
		return typeAdDuration;
	}
	public Long getModeId() {
		return modeId;
	}
	public void setModeId(Long modeId) {
		this.modeId = modeId;
	}
	public String getModeName() {
		return modeName;
	}
	public void setModeName(String modeName) {
		this.modeName = modeName;
	}
}
